// 导入：类型、接口、模块、组件、样式
import { Component, ReactElement } from "react";
interface Props {
  a: string;
  b: number;
  children: ReactElement;
  c: ReactElement;
}
interface State {}
class Index extends Component<Props, State> {
  render() {
    return (
      <fieldset>
        <legend>15-父传子children</legend>

        <h1>{this.props.a}</h1>
        <h1>{this.props.b}</h1>

        {this.props.children}
        {this.props.c}
      </fieldset>
    );
  }
}
export default Index;
